// pages/article/article.js
Page({
  data: {

  },
  onLoad: async function (options) {
    var module = await import("../../utils/http");
    var bannerRes = await module.ReadHttp.getBanner();
    var articleRes = await module.ReadHttp.getArticle();
    this.setData({
      banner:bannerRes.data.res,
      article:articleRes.data.res
    })
  },
  toDetail(event){
    var id = event.currentTarget.dataset.id;
    wx.navigateTo({
      url: `/pages/atDetile/atDetile?id=${id}`,
    })
  }
})